<script type="text/javascript">
function display_info(id1, id2){
	document.getElementById(id1).style.display = '';
	document.getElementById(id2).style.display = 'none';
}
function checkValid(){
	var a = document.comment.message;
	if(a.value.length < 1){
		alert('评论内容不能为空！');
		return false;
	}
	if(a.value.length > 500){
		alert('评论内容长度不能超过500字！');
		return false;
	}
	return true;
}
</script>
<div id="append_parent"></div>
<!--医院页面头部-->
<div class="hostop">
	<div class="hosname">
   	  <h1><?php echo $hospital['name']; ?></h1>
        <h2><?php echo $hospital['address']; ?></h2>
    </div>
</div>
<div class="hosnav">
	<ul>
    </ul>
</div>
<!--内容区域-->
<div class="hosdiv">
	<!--左侧区域-->
	<div class="hosleft">
    	<dl class="intro">
        	<dt class="hosinfo_tit">医院简介<span>| Brief introduction</span><span id="moditime">信息更新时间：<?php echo date('m月d日',$hospital['puttime']); ?></span></dt>
          <dd>

           	  <div class="hosimg">
              <img src="<?php //输出图片地址
			if($hospital['image']!=''){
				echo $baseurl.'uploads/hosimg/'.$hospital['image'];
			}else{
				echo $baseurl.'images/nopic.jpg';
			} ?>" width="200" height="200" />
              </div>
            	<div class="introbox">
                	<dl>
                    	<dt>医院基本情况</dt>
                    	<dd>医院名称：<span><?php echo $hospital['name']; ?></span></dd>
                        <dd>医院级别：<span><?php echo $hospital['rank']; ?></span></dd>
                        <dd>床位数：<span><?php echo $hospital['bednum']; ?>张</span></dd>
                        <dd>医院网址：<span><?php echo $hospital['website']; ?></span></dd>
                        <dd id="info_1">医院简介：<?php echo $hospital['baseintro']; ?>
                            <div align="right"><a style="color:#339900;text-decoration:underline" href="javascript:;" onclick="display_info('info_2', 'info_1')" >完整介绍&gt;&gt;</a></div></dd>
                            <dd id="info_2" style="display: none" >医院简介：<?php echo $hospital['intro']; ?>
                            <div align="right"><a style="color:#339900;text-decoration:underline" href="javascript:;" onclick="display_info('info_1', 'info_2')">&lt;&lt;简单介绍</a></div></dd>
                    </dl>
                </div>
          </dd>
        </dl>
        <dl style="clear:both"></dl>
		<?php if(isset($dts) && !empty($dts)) { ?>
        <dl id="dept">
        	<dt>科室信息<span>| Department</span></dt>
            <dd>
            	<?php foreach ($dts as $k=>$v){ ?>
                <div class="tno" onmouseover="this.className='tyes'" onmouseout="this.className='tno'">
					<div class="ks_type"><?php echo $v; ?></div>
                    <div class="ks_name">
                    <?php foreach ($dept_list as $d){
                     		if($d['depttype']==$v){
								echo "<a href ='#' target='_blank'>".$d['name']."</a> <span style='font-size:11px;color:#ED8C21;'>(".$d['doct_num'].")</span> | ";
							  }
							}?>
                    </div>
                </div>
                <div class="clear"></div>
                <?php }?>
            </dd>
        </dl>
		<?php }?>
        <dl style="clear:both"></dl>
        <dl class="doct">
        	<dt>医院专家<span>| Doctor</span></dt>
            <dd>
            	<span class="doctspan2">
                	<span>
					</span>
                    <span class="deptspan2">
					</span>
                </span>
            </dd>
        </dl>
        <dl style="clear:both"></dl>
        <dl class="comment">
        	<dt>发表评论<span>| Comment</span></dt>
          <dd>
            	<form id="comment" name="comment" method="post" action="hospital.php?action=comment">
                  <p><a style="cursor:pointer" id="face" onclick="showFace(this.id,'message');"><img src="<?php echo $baseurl; ?>images/facelist.gif" align="absmiddle" /></a>
			
				<span>欢迎<a href="user.php" target="_blank" style="color:#339900;font-weight:bold;margin:0 5px;">会员</a>在这里发表您对医院的评论！</span>
				
</p>
                  <p>
                  <div class="textarea">
                    	<textarea id="message" name="message" rows="8" cols="70" ></textarea>
						<input type="hidden" name="uid" value=""></input>
						<input type="hidden" name="name" value=""></input>
						<input type="hidden" name="hosid" value=""></input>
						<input type="hidden" name="hosname" value=""></input>
                  </div>
                    <div class="warning">
                    	<dl>
                        <dd>1. 请遵守<a href="law.php" target="_blank">《互联网电子公告服务管理规定》</a>及中华人民共和国其他各项有关法律法规。</dd>
                        <dd>2. 评论内容只代表网友个人观点，与本站立场无关，管理员有权处理评论内容。</dd>
                        <dd style="margin-top:10px"><input type="image" src="<?php echo $baseurl; ?>images/btn.gif" onclick="return checkValid();"/></dd>
                        </dl>
                  </div>
                    </p>
           	</form>
          </dd>
        </dl>
    </div>
    <!--右侧区域-->
    <div class="hosright">
    	<!--优惠信息-->
        <dl class="vip">
        	<dt>会员优惠<span>| Preference</span></dt>
          <dd><?php echo $hospital['vip']; ?></dd>
        </dl>
         <!--相关新闻-->
        <dl id="news">
        	<dt>相关新闻<span>| News</span></dt>
          <dd><ul>
					<?php foreach($hs_article as $r){ ?>
					<li>
						<span>[<?php echo date('m.d',$r['puttime']); ?>]</span> <a href="" title="<?php echo $r['title'] ?>" target="_blank"><?php echo $r['tit'] ?></a>	
					</li>
					<?php }?>
				</ul></dd>
        </dl>
         <!--最新评价-->
        <dl class="newcomment">
        	<dt>最新评论<span>| New comments</span></dt>
          	<dd class="c_list">
            
            	<div>
                	<p class="c_tit"><span><a href="user.php" target="_blank">会员名</a></span>于<span>时间</span>评论：</p>
                    <p class="c_con">评论</p>
                </div>
          	</dd>
			<dd class="more">
			查看所有评论>>></dd>
        </dl>
    </div>
</div>
<div style="clear:both"></div>
<div class="footer">
	<ul>
        <li style="color:#339900;margin-left:15px;">好医生导医网 © 2008－2009 版权所有</li>
    </ul>
</div>
</body>
</html>